package com.xcyy.clbzbh.service.imp;

import com.xcyy.clbzbh.entity.Role;
import com.xcyy.clbzbh.repository.RoleRepository;
import com.xcyy.clbzbh.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImp implements RoleService {

    @Autowired
    private RoleRepository roleRepository;
    @Override
    public Role findById(String id) {
        return roleRepository.findById(id).orElse(null);
    }
}
